﻿<!--
// (c) Copyright Microsoft Corporation.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
-->

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:local="clr-namespace:PhoneInfo"
   
    xmlns:es="clr-namespace:Microsoft.Expression.Shapes;assembly=Microsoft.Expression.Drawing"
   
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
   
    >
	<Style TargetType="local:StarMark">
		<Setter Property="Width" Value="340"/>
		<Setter Property="Height" Value="35"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:StarMark">
					<Grid>
						<ItemsControl x:Name="stars">
							<ItemsControl.ItemsPanel>
								<ItemsPanelTemplate>
									<StackPanel Orientation="Horizontal" />
								</ItemsPanelTemplate>
							</ItemsControl.ItemsPanel>
							<ItemsControl.ItemTemplate>
								<DataTemplate>
									<Path Data="M16,0 L19.77688,12.223213 L32.000001,12.222913 L22.111121,19.776973 L25.888544,32.000001 L16,24.445454 L6.1114563,32.000001 L9.88888,19.776973 L2.2971745E-08,12.222913 L12.22312,12.223213 z" 
										Fill="{Binding Fill}" HorizontalAlignment="Left" Height="32" Margin="1,0" Width="32"
										Stretch="Fill" VerticalAlignment="Top" />
								</DataTemplate>
							</ItemsControl.ItemTemplate>
						</ItemsControl>
						<Rectangle Fill="#00000000"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="local:TabSwitch">
		<Setter Property="Width" Value="480"/>
		<Setter Property="Height" Value="800"/>
		<Setter Property="Background" Value="#31b2e7"/>
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<StackPanel Orientation="Horizontal" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:TabSwitch">
					<Grid Background="{TemplateBinding Background}">
						<Grid x:Name="rectangle" HorizontalAlignment="Left" Width="100" Height="100" VerticalAlignment="Top">
							<Grid.RenderTransform>
								<CompositeTransform/>
							</Grid.RenderTransform>
							<es:RegularPolygon Fill="#FFE5E5E5" InnerRadius="1" PointCount="3" 
								Stretch="Fill" UseLayoutRounding="False" Margin="21.142,-0.062,21.116,0" 
								Height="13.409" VerticalAlignment="Top" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment" RenderTransformOrigin="0.5,0.5">
								<es:RegularPolygon.RenderTransform>
									<CompositeTransform Rotation="-180.131"/>
								</es:RegularPolygon.RenderTransform>
							</es:RegularPolygon>
						</Grid>
						<ItemsPresenter/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="local:TabSwitchItem">
		<Setter Property="Width" Value="90"/>
		<Setter Property="Height" Value="50"/>
		<Setter Property="Margin" Value="0,10,0,3"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:TabSwitchItem">
					<Grid>
						<TextBlock Text="{TemplateBinding Head}" FontSize="35"  TextAlignment="Center"/>
						<ContentPresenter ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="local:ToastPrompt">
		<Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
		<Setter Property="FontSize" Value="{StaticResource PhoneFontSizeSmall}"/>
		<Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
		<Setter Property="Background" Value="{StaticResource PhoneAccentBrush}"/>
		<Setter Property="VerticalAlignment" Value="Top" />
		<Setter Property="Overlay" Value="{StaticResource TransparentBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="local:ToastPrompt">
					<Grid
						VerticalAlignment="{TemplateBinding VerticalAlignment}"
						Background="{TemplateBinding Background}">
						<StackPanel 
							VerticalAlignment="Bottom" 
							Margin="24, 32, 16, 5" 
							Orientation="{TemplateBinding TextOrientation}">
							<StackPanel
								Margin="0,0,16,0"
								VerticalAlignment="Bottom"
								Orientation="Horizontal">
                                <!--<Image 
                                    Stretch="None"
                                    Margin="0,0,16,0"
								    Visibility="Collapsed"
								    Name="ToastImage"
                                    VerticalAlignment="Bottom"
								    Source="{TemplateBinding ImageSource}" />-->
								<TextBlock 
									Text="{TemplateBinding Title}"
									FontWeight="Bold"
									VerticalAlignment="Center"
									Margin="0"
									Padding="0" />
							</StackPanel>
							<TextBlock 
								Text="{TemplateBinding Message}" 
								Margin="0"
								Padding="0" 
								TextWrapping="{TemplateBinding TextWrapping}"
								VerticalAlignment="Center"/>
						</StackPanel>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>